package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.BCase;
import com.ruoyi.system.domain.request.CaseRequest;
import com.ruoyi.system.domain.vo.BCaseVo;
import com.ruoyi.system.service.BCaseService;
import com.ruoyi.system.mapper.BCaseMapper;
import org.springframework.stereotype.Service;
import java.util.List;

/**
* @author yangxingze
* @description 针对表【b_case(Ai案例表)】的数据库操作Service实现
* @createDate 2024-10-11 23:30:55
*/
@Service
public class BCaseServiceImpl extends ServiceImpl<BCaseMapper, BCase>
    implements BCaseService{

    /**
     * 查询案例列表
     * @param request
     * @return
     */
    @Override
    public List<BCaseVo> queryList(CaseRequest request) {
        return baseMapper.queryList(request);
    }

    /**
     * 根据案例Id获取详细信息
     * @param caseId
     * @return
     */
    @Override
    public BCaseVo selectCaseById(Long caseId) {
        return baseMapper.selectCaseById(caseId);
    }

    /**
     * 删除案例
     * @param caseIds
     * @return
     */
    @Override
    public int deleteCaseByIds(Long[] caseIds) {
        return baseMapper.deleteCaseByIds(caseIds);
    }
}




